package cn.qiao.demo.domain;


public class MyThead extends Thread {

    private Class mainClass;
    private String[] args;
    private ClassLoader classLoader;


    public MyThead(Class mainClass, ClassLoader classLoader) {
        this.mainClass = mainClass;
        this.args = args;
        this.classLoader = classLoader;
    }

    @Override
    public void run() {
        Class<? extends Class> aClass = mainClass.getClass();
        ClassLoader classLoader = aClass.getClassLoader();
        System.out.println(classLoader);
    }
}
